package lab02.test05;

/**
 * Created by 阿阿阿阿豪丶 on 2017/10/15.
 */
public class Cube {
    int length;
    int width;
    int high;

    void setLength(int length){
        this.length = length;
    }

    int  getLength(){
        return length;
    }

    void setWidth(int width){
        this.width = width;
    }

    int getWidth(){
        return width;
    }

    void setHigh(int high){
        this.high = high;
    }

    int getHigh(){
        return high;
    }

    int volume(){
        int volume;
        volume = getLength() * getWidth() * getHigh();
        return volume;
    }
}
